﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.Domain;
using OFB.DAL;
using OFB.BLL.ViewModel;

namespace OFB.BLL.Context
{
    public class CreateFeedbackContext : CommonContext
    {
        public DataQueryDAL<ManageFeedbackViewModel> FeedbackViewModel { get; set; }
        public DataQueryDAL<Course> Course { get; set; }
        public DataQueryDAL<Subject> Subject { get; set; }
        public DataQueryDAL<Trainee> Trainee { get; set; }
        public DataQueryDAL<Trainer> Trainer { get; set; }
        public DataQueryDAL<Feedback> CreateFeedback { get; set; }
        public DataQueryDAL<FeedbackAnswer> FeedbackAnswer { get; set; }

        public CreateFeedbackContext()
        {
            CreateFeedback = new DataQueryDAL<Feedback>(this.connectionStringName);
            FeedbackViewModel = new DataQueryDAL<ManageFeedbackViewModel>(this.connectionStringName);
            Course = new DataQueryDAL<Course>(this.connectionStringName);
            Subject = new DataQueryDAL<Subject>(this.connectionStringName);
            Trainee = new DataQueryDAL<Trainee>(this.connectionStringName);
            Trainer = new DataQueryDAL<Trainer>(this.connectionStringName);
            FeedbackAnswer = new DataQueryDAL<FeedbackAnswer>(this.connectionStringName);
        }

    }
}
